<!DOCTYPE html>
<html>
<head>
	<title>信息无限分类管理</title>
	<meta charset = 'utf8'>
</head>
<body>
	<include file='Public/menu'/>
	<center>
		<table border="1" width="500px">
			<tr bgcolor="#cccccc">
				<td>id</td><td>类名</td><td>父id</td><td>路径</td><td>操作</td>
			</tr>
			<foreach name = 'rows' item = 'row'>
				<tr>
					<td>{$row.id}</td>
					<td>{$row.name}</td>
					<td>{$row.pid}</td>
					<td>{$row.path}</td>
					<td> 
						<a href="{:U('Home/Add/add' , $row) }">添加子类</a>&nbsp;&nbsp;
						<a href="{:U('Home/Del/delDo' , $row) }">删除</a>
					</td>
				</tr>	
			</foreach>
		</table>
		<table>
			<tr>
				<td>
					<a href="{:U('Home/Index/index2' , array( 'pid' => 0 , 'id' => -1 )  )}">分层查看</a>
				</td>
			</tr>
		</table>
	</center>

</body>
</html>